<#macro cap_and_split_default fieldName>
<#if fieldName?matches("[A-Z]*")>
<#else>
<#assign res = fieldName?matches("([a-z]*)([A-Z][a-z]*)")>
    <#if res?size gt 0>
        <#assign defaultStringValue = "">
        <#list res as m>
            <#assign str1 = m?groups[1]>
            <#assign str2 = m?groups[2]>
                <#if str1?length gt 0>
                    <#if defaultStringValue?length gt 0>
                        <#assign defaultStringValue = defaultStringValue + " " + str1?cap_first>
                    <#else>
                        <#assign defaultStringValue = str1?cap_first>
                    </#if>
                </#if>
                <#if str2?length gt 0>
                    <#if defaultStringValue?length gt 0>
                        <#assign defaultStringValue = defaultStringValue + " " + str2?cap_first>
                    <#else>
                        <#assign defaultStringValue = str2?cap_first>
                    </#if>
                </#if>
        </#list>
    </#if>
</#if>
</#macro>